﻿using ZhiAo.BaseFramework;
using ZhiAo.BaseFramework.DBConnection;
using System;
using System.Data;
using System.Web;
using System.Collections;

namespace ZhiAo.WebLib.Data
{ 

    [Serializable]
    public class TDAIClient
    {
        public static string AppDBConnection;

        public static string SingleProductTag;
        public static string SystemTag;

        public static Hashtable SystemParameterObjects;

        public static ZhiAo.BaseFramework.DBConnection.DB BusinessDB
        {
            get
            {
                
                ZhiAo.BaseFramework.DBConnection.DB dB = BaseManagement.GetDB("");
                return dB;
            }
        }
 
        public static TDAIClient DAIClient
        {
            get
            {
                try
                {
                    TDAIClient client = (TDAIClient) HttpContext.Current.Session["FDAIClient"];
                    if (client == null)
                    {
                    }
                    return client;
                }
                catch
                {
                    return null;
                }
            }
        }
 
 
 
 
    }
}

